package com.ysyc.driver_ee.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <p>描述：(这里用一句话描述这个类的作用)</p>
 * 作者： Chan<br>
 * 日期： 2018/11/10 10:55<br>
 * 版本： v1.0<br>
 */
public class StatistiaVoListModel implements Parcelable {

    /***	流水	*/
    public Integer water;
    /***	数量	*/
    public Integer num;
    /***	日期	*/
    public String time;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.water);
        dest.writeValue(this.num);
        dest.writeString(this.time);
    }

    public StatistiaVoListModel() {
    }

    protected StatistiaVoListModel(Parcel in) {
        this.water = (Integer) in.readValue(Integer.class.getClassLoader());
        this.num = (Integer) in.readValue(Integer.class.getClassLoader());
        this.time = in.readString();
    }

    public static final Parcelable.Creator<StatistiaVoListModel> CREATOR = new Parcelable.Creator<StatistiaVoListModel>() {
        @Override
        public StatistiaVoListModel createFromParcel(Parcel source) {
            return new StatistiaVoListModel(source);
        }

        @Override
        public StatistiaVoListModel[] newArray(int size) {
            return new StatistiaVoListModel[size];
        }
    };
}
